package svc

import (
	"boke/api/internal/config"
	"boke/bokerpc/bokerpcclient"
	"github.com/zeromicro/go-zero/zrpc"
)

type ServiceContext struct {
	Config  config.Config
	BokeRpc bokerpcclient.Bokerpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:  c,
		BokeRpc: bokerpcclient.NewBokerpc(zrpc.MustNewClient(c.BokeRpc)),
	}
}
